@import 'header';
%h2{
    font-size: 22px;
    color: #262626;
    margin-right: 20px;
    display: inline-block;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 20px;
}
%flex{
    display: flex;
    justify-content: space-between;
}
%hover{
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px #aaa ;
}
%h22{
    font-size: 16px;
    margin: 5px 0;
    font-weight: 500;
    text-align: center;
}
%p{
    font-size: 12px;
    text-align: center;
}
%price{
    display: block;
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}
%tu{
    background-color: #fff;
    display: flex;
    flex-direction: column;
    h2{
        @extend %h22;
    }
    p{
        @extend %p;
    }
    span{
        @extend %price;
    }
}
#banner{
    width: 100%;
    height: 450px;
    overflow: hidden;
    img{
        width: 100%;
        height: 450px;
    }
}


#main-wrap{
    background-color: #ddd;
}
#main{
    width: 1180px;
    margin: auto;
    background-color: #ddd;
    //m1
    #m1{
        h2{
            @extend %h2;
        }
        .box{
            width: 1180px;
            @extend %flex;
            #m11,#m12{
                width: 580px;
                height: 370px;
                img{
                    width: 100%;
                    height: 100%;
                }
                &:hover{
                    @extend %hover;
                }
            }
        }
    }
    //m2
    #m2{
        h2{
            @extend %h2;
        }
        .box{
            width: 1180px;
            @extend %flex;
            #m21,#m22,#m23,#m24{
                width: 240px;
                height: 330px;
                img{
                    width: 100%;
                    height: 70%;
                }
                &:hover{
                    @extend %hover;
                }
                @extend %tu;
            }
        }
    }

    //m3
    #m3{
        width: 1180px;
        height: 160px;
        margin-top:30px;
        img{
            width: 100%;
            height: 160px;
        }
    }

    //m4
    #m4{
        h2{
            @extend %h2;
        }
        /* width: 1180px;
        height: 400px; */
        img{
            width: 100%;
            height: 400px;
        }
    }

    //m5
    #m5{
        h2{
            @extend %h2;
        }
        .box{
            width: 1180px;
            @extend %flex;
            #m51,#m52,#m53,#m54{
                @extend %flex;
                width: 240px;
                height: 330px;
                img{
                    width: 100%;
                    height: 70%;
                }
                &:hover{
                    @extend %hover;
                }
                @extend %tu;
            }
        }
    }

    //m6
    #m6{
        width: 1180px;
        height: 160px;
        margin-top:30px;
        img{
            width: 100%;
            height: 160px;
        }
    }

    //m7
    #m7{
        margin-bottom: 40px;
        h2{
            @extend %h2;
        }
        .box{
            width: 1180px;
            @extend %flex;
            #m71,#m72,#m73,#m74{
                @extend %flex;
                width: 240px;
                height: 330px;
                img{
                    width: 100%;
                    height: 70%;
                }
                &:hover{
                    @extend %hover;
                }
                @extend %tu;
            }
        }
    }

}
